/**
 * This file is used specifically and only for development. It installs
 * `electron-debug` & `vue-devtools`. There shouldn't be any need to
 *  modify this file, but it can be used to extend your development
 *  environment.
 */

/* eslint-disable */
// Set environment for development
process.env.NODE_ENV = 'development'

// Install `electron-debug` with `devtron`
require('electron-debug')({ showDevTools: true })

// 手动添加vue调试工具
const { BrowserWindow } = require('electron')
// Install `vue-devtools`
require('electron').app.on('ready', () => {
	let installExtension = require('electron-devtools-installer')
	installExtension
		.default(installExtension.VUEJS_DEVTOOLS)
		.then(() => {})
		.catch((err) => {
			console.log('不能安装 `vue-devtools`: \n', err)
		})

	BrowserWindow.addDevToolsExtension(
		'C:/Users/Administrator/AppData/Local/Google/Chrome/User Data/Default/vue-devtools-5.1.1/shells/chrome'
	)
	// chrome文件夹所在的完整路径地址
})

// Require `main` process to boot app
require('./index')